<?php
$myDir = dirname(__FILE__) . "/";
require_once($myDir."../autoload.php");

if (count($argv) == 1 || $argv[1] == "--help" ) {
  die( "\n\tUsage: php add_data_object.php [CLASS_NAME] [PATH_TO_PROJECT]\n\n");  
}

$className = $argv[1];
$path      = $argv[2];
$autoload = "gen_autoload.php";

//TODO: check validity of path
WebUtils::addDataObjectToGenAutoload($className, $path);
WebUtils::genNewDataObject($className, $path);


